package org.ecpkn.PAGridSim.core.gridsimEntity.policy.paPolicy.concretePolicy.RMPartitionPAPolicy;

import gridsim.ResGridlet;

import java.util.Comparator;

import org.ecpkn.PAGridSim.core.gridsimEntity.policy.paPolicy.preemptable.PartitionPreemptablePAPolicy;
import org.ecpkn.PAGridSim.core.gridsimEntity.policy.paPolicy.priority.RM.RM;

/**
 * @author Lin Zhou
 * 
 *         This class extends PartitionPreemptablePAPolicy, and the schedule
 *         policy is based on RM
 * 
 */
public class RMPartitionPreemptablePAPolicy extends
		PartitionPreemptablePAPolicy implements RM{

	public RMPartitionPreemptablePAPolicy(String resourceName, String policyName)
			throws Exception {
		super(resourceName, policyName);
	}

	@Override
	public Comparator<ResGridlet> getPriorityComparator() {
		return RM.comparator;
	}

}
